<template>
  <div class="app">
    <header>
      <router-view name="header" />
    </header>
    <main>
      <router-view v-slot="{ Component }" >
        <keep-alive include="Home,Category">
          <component :is="Component" />
        </keep-alive>
      </router-view>
    </main>
    <footer>
      <router-view name="footer" />
    </footer>
  </div>
</template>

<script lang="ts" setup>
</script>

<style>
html,
body,
#app {
  width: 100%;
  height: 100%;
}
</style>

<style lang="less" scoped>
.app {
  display: flex;
  flex-direction: column;
  height: 100%;

  main {
    flex: 1;
  }
}
</style>
